package it.mp.multitask.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.HorizontalScrollView;

public class HorizontalScrollViewElencoTask extends HorizontalScrollView{


	
	
	public HorizontalScrollViewElencoTask(Context context, AttributeSet attrs) {
		super(context, attrs); 
	}

	
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {		
		super.onMeasure(widthMeasureSpec, heightMeasureSpec);
		if (this.getWidth()>0){			
			LinearLayoutElencoTask ll=(LinearLayoutElencoTask)this.getChildAt(0);			
			this.smoothScrollBy(ll.getPixelRecentlyApplication(), 0);
		}		
	}
		
}
